package com.cdpm.web.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author WeiHongBin
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@ApiModel(value = "WorkCreateDTO")
@JsonIgnoreProperties(ignoreUnknown = true)
public class WorkCreateDTO {

    private String title;

    private String description;

    @JsonProperty("cover_image_url")
    private String coverImageUrl;


    private List<Object> pages;

    private LocalDateTime createTime = LocalDateTime.now();

    private LocalDateTime updateTime = LocalDateTime.now();

    @JsonProperty("is_publish")
    private boolean publish = false;

    @JsonProperty("is_template")
    private boolean template = false;

    @JsonProperty("created_by")
    private String createdBy;


}
